ex_tuple = (1, 2, 3, True, 'abc', (1, 2, 3, 4))  # 一个元组
ex_list = [1, 2, 3, True, "abc", [1, 2, 3, 4], ex_tuple]  # 一个列表
type(ex_tuple)

empty_list = []
empty_tuple = ()

one_list = [1]
one_tuple = (1,)

# 读取元素：通过下标：0
ex_list[4]
ex_list[6]
ex_list[6][5]
ex_list[6][5][2]

ex_list[0] = 3.2
# 尾部引用
ex_list[-1]
ex_list[-2]

# 范围引用
# 序列名[下限：上限：步长]
ex_list1 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
ex_list1[1:3]
ex_list1[1:8:2]
ex_list1[:8]
ex_list1[2:]
ex_list1[:]
ex_list1[::-1]
ex_list1[8:2:-1]
ex_list1[2:8:-1]
ex_list1[1:-1]

# in
9 in ex_list1
9 not in ex_list1
